import axios from "axios";
export default function (options, callback, errFn) {
    axios(options).then(data => {
        if (data.status === 200) {
            callback && callback(data);
        } else {
            errFn && errFn();
        } 
    }).catch(err => {
        console.log(err);
        errFn && errFn();
    });
}